package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户信息表对象 sys_customer
 *
 * @author ruoyi
 * @date 2023-12-03
 */
public class SysCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 部门ID */
    private Long deptId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String license;

    /** 车架号 */
    @Excel(name = "车架号")
    private String vin;

    /** 姓名 */
    @Excel(name = "姓名")
    private String cusName;

    /** 电话 */
    @Excel(name = "电话")
    private String cusPhone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String cusId;

    /** 车型 */
    @Excel(name = "车型")
    private String carModel;

    /** 初登日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "初登日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date firstReg;

    /** 发动机号 */
    @Excel(name = "发动机号")
    private String engineNumber;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 排量 */
    @Excel(name = "排量")
    private BigDecimal displacement;

    /** 到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryDate;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setLicense(String license)
    {
        this.license = license;
    }

    public String getLicense()
    {
        return license;
    }
    public void setVin(String vin)
    {
        this.vin = vin;
    }

    public String getVin()
    {
        return vin;
    }
    public void setCusName(String cusName)
    {
        this.cusName = cusName;
    }

    public String getCusName()
    {
        return cusName;
    }
    public void setCusPhone(String cusPhone)
    {
        this.cusPhone = cusPhone;
    }

    public String getCusPhone()
    {
        return cusPhone;
    }
    public void setCusId(String cusId)
    {
        this.cusId = cusId;
    }

    public String getCusId()
    {
        return cusId;
    }
    public void setCarModel(String carModel)
    {
        this.carModel = carModel;
    }

    public String getCarModel()
    {
        return carModel;
    }
    public void setFirstReg(Date firstReg)
    {
        this.firstReg = firstReg;
    }

    public Date getFirstReg()
    {
        return firstReg;
    }
    public void setEngineNumber(String engineNumber)
    {
        this.engineNumber = engineNumber;
    }

    public String getEngineNumber()
    {
        return engineNumber;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setDisplacement(BigDecimal displacement)
    {
        this.displacement = displacement;
    }

    public BigDecimal getDisplacement()
    {
        return displacement;
    }
    public void setExpiryDate(Date expiryDate)
    {
        this.expiryDate = expiryDate;
    }

    public Date getExpiryDate()
    {
        return expiryDate;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("license", getLicense())
            .append("vin", getVin())
            .append("cusName", getCusName())
            .append("cusPhone", getCusPhone())
            .append("cusId", getCusId())
            .append("carModel", getCarModel())
            .append("firstReg", getFirstReg())
            .append("engineNumber", getEngineNumber())
            .append("address", getAddress())
            .append("displacement", getDisplacement())
            .append("expiryDate", getExpiryDate())
            .append("remarks", getRemarks())
            .toString();
    }
}
